﻿@model Package
<table class="d-field-table">
    <tr>
        <td>
            <h3 class="d-field-title">
                <label for="Package_Name">
                    @Html.Global("RES_NAME")</label>
            </h3>
            <div class="d-field-description">
                @Html.Global("PackageForm_Name_Tips")
            </div>
        </td>
        <td>
            @Ajax.DnaFor().TextBox(m => m.Name).Width(300).GetHtml()
        </td>
    </tr>
    <tr>
        <td>
            <h3 class="d-field-title">
                <label for="Package_Title">
                    @Html.Global("RES_TITLE")
                </label>
            </h3>
            <div class="d-field-description">
                @Html.Global("PackageForm_Title_Tips")
            </div>
        </td>
        <td>
            @Ajax.DnaFor().TextBox(m => m.Title).Width(300).GetHtml()
        </td>
    </tr>
    <tr>
        <td>
            <h3 class="d-field-title">
                <label for="Package_Version">
                    @Html.Global("RES_VERSION")
                </label>
            </h3>
            <div class="d-field-description">
                @Html.Global("PackageForm_Version_Tips")
            </div>
        </td>
        <td>
            <table>
                <tr>
                    <td style="padding: 0px; margin: 0px;">
                        V
                    </td>
                    <td style="padding: 0px; margin: 0px;">@Ajax.DnaFor().TextBox(m => m.Version).Value("1.0").Width(100).GetHtml()
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <h3 class="d-field-title">
                <label for="Web_Description">
                    @Html.Global("RES_DESC")</label></h3>
            <div class="d-field-description">
                @Html.Global("PackageForm_Desc_Tips")
            </div>
        </td>
        <td>
            @Ajax.DnaFor().TextArea(m => m.Description).Width(300).Resizable().GetHtml()
        </td>
    </tr>
    <tr>
        <td>
            <h3 class="d-field-title">
                @Html.Global("RES_IMAGES")
            </h3>
            <div class="d-field-description">
                @Html.Global("PackageForm_Image_Tips")
            </div>
        </td>
        <td id="d_uploadHolder">
            @FileUpload.GetHtml("thumbUploader", 2, addText: Html.Global("RES_ADD_MORE_FILES"), includeFormTag: false)
            @{ Ajax.RegisterStartupScript("$(\"#d_uploadHolder\").find(\"input[type='submit']\").hide();"); }
        </td>
    </tr>
</table>
